import { http } from "@/utils/http";
import { baseUrlApi } from "@/api/utils";
type Result = {
  current_page: number;
  result?: any;
  per_page?: number;
  total?: number;
  data?: any;
};
type ResultCreate = {
  code: number;
  msg: string;
};
/** 企业用户列表 */
export const getCorpUserListApi = (params?: object) => {
  return http.request<Result>("get", baseUrlApi + "/admin/corpUser/list", {
    params
  });
};

/** 添加*/
export const createCorpUserApi = (data?: object) => {
  return http.request<ResultCreate>(
    "post",
    baseUrlApi + "/admin/corpUser/store",
    {
      data
    }
  );
};
/** 职位接口 */
export const getJobTitleListApi = (params?: object) => {
  return http.request<Result>("get", baseUrlApi + "/jobTitle/selectOptions", {
    params
  });
};
